package com.szjlc.blog;

import cn.hutool.core.date.StopWatch;
import lombok.extern.slf4j.Slf4j;
import org.mybatis.spring.annotation.MapperScan;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;

/**
 * 启动类
 * @author steve
 * @since 2022-11-13 15:33
 */
@Slf4j
@SpringBootApplication
// @MapperScan("com.szjlc.blog")
public class BlogApplication {

    public static void main(String[] args) {
        StopWatch stopWatch = new StopWatch();
        stopWatch.start("BlogApplication");
        log.info("blog project starting...");
        SpringApplication.run(BlogApplication.class, args);
        stopWatch.stop();
        log.debug("{}", stopWatch.prettyPrint());
        log.info("costTime={}ms", stopWatch.getTotalTimeMillis());
        log.info("blog project started");
    }
}
